function perryRules() {
	document.title = "YOU ARE PERRY!!!";
}
function perryIsSilly() {
	var answer = prompt("Hey - what do you think of perry? Is he silly?");
	if (answer == "yes") alert("you are correct!");
}	

$(document).ready(perryRules).ready(perryIsSilly);
	
$(document).ready( function () {
	
	$("div")
		.css("width", "250px")
		.css("border", "dotted gray 2px")
		.css("text-align", "center")
		.mouseleave( function () {
			$(this).css("font-style", "").css("color", "black");
		}); 
	
	$("div").eq(0).click( function () {
		document.location = "http://google.com";
	}).mouseenter( function () {
		$(this).css("font-style", "italic").css("color", "red");
	});
	
	$("#secondDiv").click( function () {
		document.location = "http://msn.com";
	}).mouseenter( function () {
		$(this).css("font-style", "italic").css("color", "olive");
	});
	
	$(".thirddiv").click( function () {
		document.location = "http://yahoo.com";
	}).mouseenter( function () {
		$(this).css("font-style", "italic").css("color", "orange");
	});

});